# encoding=utf8

from gifix import gifix

SAME_THRESHOLD = 1
RESIZE_RATE = 0.59

image = 'mergeVID_20220121_171412.gif'

name = image.split('.')[0]
gif = gifix(image)
gif.save_gif_sub_frames(name)
gif.del_same_frames(SAME_THRESHOLD)
gif.resize_frames(RESIZE_RATE)
gif.save_gif('compress_' + image)
